package ccy.ccyarmourersworkshopupdateplayerskin;

import ccy.ccylibrary.plugin.annotation.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

@command(name="skinupdate")
public class CcyCommand implements CommandExecutor {

    @Override
    public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
        if(command.getName().equalsIgnoreCase("skinupdate") && commandSender instanceof Player){
            Player player= (Player)commandSender;
            CcyArmourersWorkshopUpdatePlayerSkin.ccyPlugin.UpdatePlayerSkin(player);
        }
        return false;
    }
}
